<?php
include("include.php");

session_start();
check_security_1(2);

$url_cmd = "http://" . HOST_DOMAIN_NAME . ROOT_WS ."inv/assetmanager/assetmanager.php";
//echo "url_cmd: $url_cmd<br>";
?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK href="style.css" rel="stylesheet" type="text/css">
<title>Editor 2.0</title>
<?
//Check user's Browser
if(strpos($_SERVER["HTTP_USER_AGENT"],"MSIE"))
	echo "<script language=JavaScript src='../inv/scripts/editor.js'></script>";
else
	echo "<script language=JavaScript src='../inv/scripts/moz/editor.js'></script>";
?>
</head>

<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<pre id="idTemporary" name="idTemporary" style="display:none">
</pre>
<script language="Javascript1.2"><!-- // load htmlarea
_editor_url = "htmlarea/";                     // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
  document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
  document.write(' language="Javascript1.2"></scr' + 'ipt>');  
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>

    <table border="0" cellpadding="2" bordercolor="#111111" width="100%" id="AutoNumber2" cellspacing="0">
      <tr>
        <td >
        
		<script>
		var oEdit1 = new InnovaEditor("oEdit1");		
		oEdit1.arrStyle = [["BODY",false,"","font:10px verdana,arial,sans-serif;"]];
		
		oEdit1.width="100%";
		oEdit1.height=400;
		oEdit1.features=["FullScreen","Search",
			"Cut","Copy","Paste","PasteWord","PasteText","|","Undo","Redo","|",
			"ForeColor","BackColor","|","Bookmark","Hyperlink",
			"CustomTag","HTMLSource","BRK","Numbering","Bullets","|","Indent","Outdent","LTR","RTL","|","Image","Flash","Media","|","InternalLink","CustomObject","|",
			"Table","Guidelines","Absolute","|","Characters","Line",
			"Form","Clean","ClearAll","BRK",
			"StyleAndFormatting","TextFormatting","ListFormatting","BoxFormatting",
			"ParagraphFormatting","CssText","Styles","|",
			"Paragraph","FontName","FontSize","|",
			"Bold","Italic",
			"Underline","Strikethrough","|","Superscript","Subscript","|",
			"JustifyLeft","JustifyCenter","JustifyRight","JustifyFull"];
		oEdit1.cmdAssetManager="modalDialogShow('<?php echo $url_cmd; ?>',640,465)";
		oEdit1.RENDER(document.getElementById("idTemporary").innerHTML);		
		</script>	        
		</td>
      </tr>
    </table>
</body>
</html>
